package com.cloud.code.牛客网;

import java.util.HashMap;
import java.util.Map;
import java.util.Scanner;

public class Test51 {

    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        Map<String,Integer> map = new HashMap<>();
        while (scanner.hasNext()){
            String line = scanner.nextLine();
            String[] split = line.split("[1-9]+");
            String[] chars = line.split("[A-Z]+");

            System.out.println(split);
            System.out.println(chars);

        }
    }
}
